﻿<Window x:Class="BetterTab.Demo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:BetterTab;assembly=BetterTab"
        xmlns:conv="clr-namespace:BetterTab.Converters;assembly=BetterTab"
        xmlns:bc="clr-namespace:BetterWpfControls;assembly=BetterWpfControls"
        Title="MainWindow" Height="450" Width="525">
    
    <StackPanel Margin="20,20,20,20">
        <TextBlock Text="Better TabControl" />
        <controls:BetterTabControl Margin="0,10,0,0" Height="150">
            <controls:BetterTabItem Header="Summary" controls:BetterTabPanel.IsLocked="True">
                <!--<TextBlock>Content: summary</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem Header="Simple caption">
                <!--<TextBlock>Content: simple caption</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem Header="Aaa: a very very long caption">
                <!--<TextBlock>Content: Aaa: a very very long caption</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem Header="Bbb: a very very long caption">
                <!--<TextBlock>Content: Bbb: a very very long caption</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem Header="Ccc: a very very long caption">
                <!--<TextBlock>Content: Ccc: a very very long caption</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem>
                <controls:BetterTabItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="/BetterTab.Demo;component/Resources/star.png" Width="14" Height="14" RenderOptions.BitmapScalingMode="HighQuality" />
                        <TextBlock Text="Caption with icon and counter:" Margin="4,0,0,0"/>
                        <TextBlock Text="{Binding DataContext.Counter, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" Margin="4,0,0,0" />
                    </StackPanel>
                </controls:BetterTabItem.Header>
                <!--<TextBlock>Content: Ddd: a very very long caption</TextBlock>-->
            </controls:BetterTabItem>
            <controls:BetterTabItem Header="Some stuff here too">
                <!--<TextBlock>Content: Some stuff here too</TextBlock>-->
            </controls:BetterTabItem>
        </controls:BetterTabControl>

        <controls:BetterTabControl Margin="0,10,0,0" Height="150" ItemsSource="{Binding Tabs}">
            
        </controls:BetterTabControl>
        <!--<TextBlock Margin="0,20,0,0" Text="Default TabControl"/>
        <TabControl Height="150" Margin="0,10,0,0">
            <TabItem Header="Tab item 1" />
            <TabItem Header="Tab item 2" />
            <TabItem Header="So far so good" />
            <TabItem Header="Tab item 3" />
            <TabItem Header="Tab item with a very long caption..." />
            <TabItem Header="Why am I on another line?" />
            <TabItem Header="Bring me down! Down!">
            </TabItem>
        </TabControl>-->
    </StackPanel>
</Window>
